export const rules = {
  username: [
    { required: true, message: "用户名不能为空", trigger: "blur" },
    {
      pattern: /^[a-z0-9]{5,10}$/,
      message: "用户名必须是5-10个字母或者数字",
    },
  ],
  password: [
    { required: true, message: "密码不能为空", trigger: "blur" },
    {
      pattern: /^[a-z0-9]{3,}$/,
      message: "密码必须是3个以上字母或者数字",
    },
  ],
};
